
<?php
//模块插件类
//插件功能类，由系统调用，实现具体功能。
defined('BY_JYA') or exit('error');
class core_jy_huishou extends plugin{
	
	public function checkmember(){
		$info=pdo_get('jy_huishou_worker',array('mid'=>$_SESSION['uid'],'status'=>1));
		if(!$info){
			$info=pdo_get('jy_huishou_member',array('mid'=>$_SESSION['uid']));
			$_SESSION['role']='2';
		}else{
			$_SESSION['role']='1';
		}
		if(empty($info['mobile'])){
			exi('请先完善资料','error','/home/set');
		}
		return true;
	}
}
	$info=pdo_get('jy_huishou_worker',array('mid'=>$_SESSION['uid'],'status'=>1));
		if(!$info){
			$_SESSION['role']='1';
		}else{
			$_SESSION['role']='2';
		}
	$return['role']=$_SESSION['role'];
?>
